<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>My Virtual Library</title>
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />

</head>

<body>

<div id="wrapper">
<h1><em>MyVirtual</em> Library</h1>
<jsp:include page="header.jsp"/>

<div id="topcon">
<div id="topcon-inner">
<h2>Search My Virtual Library</h2>
<p><jsp:include page="description.jsp" /></p>
</div>
</div>
</div>

<div id="content">
<div id="body">
<div class="right">
<p>Search by first name and last name or email address or phone
above.</p>
<br />
<s:actionerror /> 

<s:form action="AddFriends.action" method="POST">
<table border="1" width="80%">
	<tr>
		<td> </td>
		<td>First Name</td>
		<td>Last Name</td>
		<td>Email Address</td>
		<td>Phone Number</td>
	</tr>

	<s:hidden name="isChecked" value="1"/>
    <s:iterator value="resultList">
    <tr>
    	 <td><s:checkbox theme="simple" name="isChecked" fieldValue="%{userId}"/></td>
         <td><s:property value="firstName"/></td>
         <td><s:property value="lastName"/></td>   
         <td><s:property value="userName"/> </td> 
         <td><s:property value="phoneNumber"/></td>
    </tr>
    </s:iterator>
</table>
<br/>
<s:submit value="Add Friend" name="addfriend" align="right"/>
<s:submit value="Add Antifriend" name="addanti" align="right"/>
</s:form>

</div>

<div class="clear"></div>
</div>
<jsp:include page="footer.html" /></div>
</body>
</html>